<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
利用response获取字符编码集;
<%=response.getCharacterEncoding() %>
<%
response.getWriter().append("欢迎登陆");

%>
重定向
<%
response.sendRedirect("login.jsp");
%>
//<%
//String username = request.getParameter("username");
//String password = request.getParameter("password");
//if(username.equals(""))

//%>
</body>
</html>